package com.dek.ssm.ch2.observer;

import org.junit.Test;

public class ObserverTest {
	
	@Test
	public void test() {
		ProductList productList = ProductList.getInstance();
		TBObserver tbObserver = new TBObserver();
		JDObserver jdObserver = new JDObserver();
		productList.addProductListObserver(tbObserver);
		productList.addProductListObserver(jdObserver);
		productList.addProduct("iphone6s");
	}
	
}
